import request from '@/utils/request'

// 查询今日数据

export function todayList(query) {
  return request({
    url: '/public/today',
    method: 'get',
    params: query
  })
}


// 查询昨日数据

export function yesterdayList(query) {
  return request({
    url: '/public/yesterday',
    method: 'get',
    params: query
  })
}

// 查询近30日数据

export function lastList(query) {
  return request({
    url: '/public/last',
    method: 'get',
    params: query
  })
}
// 查询总数据


export function totalData(query) {
  return request({
    url: '/public/total',
    method: 'get',
    params: query
  })
}
// 查询图形数据

export function chartList(query) {
  return request({
    url: '/public/chartList',
    method: 'get',
    params: query
  })
}